package cn.com.miaoto.business.service;

import cn.com.miaoto.base.common.BaseService;
import cn.com.miaoto.business.model.Project;
import cn.com.miaoto.business.mysql.ProjectMapper;
import cn.com.miaoto.business.vo.ProjectInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Created by guo.chen on 2018/9/17.
 */
@Service
public class ProjectService extends BaseService<Project> {

    @Resource
    private ProjectMapper projectMapper;

    public List<ProjectInfo> selectProjectList(Map params){
        return this.projectMapper.selectProjectList(params);
    }

    public List<Map> countByMonth(Map params){
        return projectMapper.countByMonth(params);
    }

    public List<Map> countByYear(Map params){
        return projectMapper.countByYear(params);
    }
}
